package org.s166.ums.web;

import org.s166.ums.Userservice;
import org.s166.ums.impl.userServiceImpl;

import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

@WebServlet("/register.do")
public class RegisterServlet extends HttpServlet {
    @Override
    protected void service(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
        System.out.println("servet处理客户端请求并响应...");

        // 创建业务对象，实现业务功能
        Userservice userservice = new userServiceImpl() ;
        userservice.register(null);

    }
}
